package com.lz.kunkun.messageservice.util;

public class PayMoney {
//	AlipayClient alipayClient = new DefaultAlipayClient(ZhifubaoConfig.URL, ZhifubaoConfig.App_id, ZhifubaoConfig.RSA_PRIVATE_KEY, "json", ZhifubaoConfig.input_charset, ZhifubaoConfig.ALIPAY_PUBLIC_KEY, ZhifubaoConfig.SIGNTYPE);
//    AlipayTradeAppPayRequest request = new AlipayTradeAppPayRequest ();
//    AlipayTradeAppPayModel model = new AlipayTradeAppPayModel();
//    model.setSubject("缴费订单");
//    model.setOutTradeNo(orderNo);
//    model.setProductCode("QUICK_MSECURITY_PAY");
//    model.setTotalAmount(totalPrice.toString());
//    model.setBody(accountNumber);
//    model.setPassbackParams(coinNum.toString());
//    request.setNotifyUrl(ZhifubaoConfig.Notify_url);
//    request.setBizModel(model);
//    String orderStr = "";
//    try {
//        //这里和普通的接口调用不同，使用的是sdkExecute
//        AlipayTradeAppPayResponse response = alipayClient.sdkExecute(request);
//        orderStr = response.getBody();
//        System.out.println(orderStr);//就是orderString 可以直接给客户端请求，无需再做处理。
//    } catch (AlipayApiException e) {
//        e.printStackTrace();
//    }
//    return orderStr;
//}
}
